package ooday05;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class Card {
    private String cardId;
    private String cardPwd;
    private double balance;
    public boolean panMoney(double money){
        if(balance>=money){
            balance-=money;
            return true;
        }else{
            return false;
        }

    }

    public boolean checkPwd(String pwd){
        if(pwd==cardPwd){
            return true;
        }else{
            return false;
        }
    }
}
